package com.zj.web.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReviewsDTO implements Serializable {
    private Long reviewId; //评论ID
    private Long userId; //用户ID
    private Long productId; //商品ID
    private Integer rating; //商品评分
    private String comment; //评论内容
    private String reviewImages; //评价图片URL数组
    private Date createdAt; //创建时间

    private String userName; //用户名
    private String headUrl; //用户头像

    @JsonIgnore
    private MultipartFile[] reviewImageFiles; //评价图片文件数组
}
